#!/bin/bash

# 定义收件人邮箱
RECIPIENT="du22469@qq.com"

# 定义邮件主题和内容
SUBJECT=$1
BODY=$2

# 使用mail命令发送邮件
echo -e "$BODY" | mail -s "$SUBJECT" "$RECIPIENT"
